var express = require('express');
var router = express.Router();

const TypeService = require("../services/type_service.js");

/* GET home page. */
router.get('/', function(req, res, next) {

  res.send('respond with a resource'+req);

});
router.post("/add", TypeService.add);

router.get("/find_by_page", TypeService.findByPage);

router.get("/remove",TypeService.removeByPro);

router.post("/update",TypeService.update);

module.exports = router;

